package o;

import android.content.Context;
import com.huawei.appgallery.foundation.account.bean.UserSession;
import com.huawei.gamebox.plugin.gameservice.bean.GameInfo;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant.KeyAndValue;

public class bfk {
    private static bfk ॱ;
    private long ˏ;

    public static synchronized bfk ˊ() {
        bfk o_bfk;
        synchronized (bfk.class) {
            if (ॱ == null) {
                ॱ = new bfk();
            }
            o_bfk = ॱ;
        }
        return o_bfk;
    }

    private bfk() {
    }

    public void ॱ(GameInfo gameInfo) {
        long currentTimeMillis = System.currentTimeMillis() - this.ˏ;
        if (this.ˏ != 0 && currentTimeMillis > 0 && gameInfo != null) {
            Context ˋ = ContentManager.getInstant().getContext();
            dgh.ॱ(ˋ, "15151012", new StringBuffer().append(KeyAndValue.NUMBER_01).append(HiAnalyticsConstant.REPORT_VAL_SEPARATOR).append(UserSession.getInstance().getUserId()).append(HiAnalyticsConstant.REPORT_VAL_SEPARATOR).append(gameInfo.getPackageName()).append(HiAnalyticsConstant.REPORT_VAL_SEPARATOR).append(gameInfo.getAppId()).append(HiAnalyticsConstant.REPORT_VAL_SEPARATOR).append(gameInfo.getSdkVersionCode()).append(HiAnalyticsConstant.REPORT_VAL_SEPARATOR).append(doo.ˊ(ˋ) ? KeyAndValue.NUMBER_01 : "02").append(HiAnalyticsConstant.REPORT_VAL_SEPARATOR).append(currentTimeMillis).toString());
            this.ˏ = 0;
        }
    }

    public void ˏ(long j) {
        this.ˏ = j;
    }
}
